OTP\Handler\Forms\GravityForm A

Total Complexity 60
Dependencies 8
Dependents 0
Total lines 287
Lines of code 202
Logical lines of code 121
Comment lines 0
Methods 18
Properties 0

Methods 18

Method Rating Maintainability Complexity Lines of code
_add_scripts()
A
56 8 16
parseFormDetails()
S
49 7 29
validate_form_submit()
S
54 7 20
validate_submitted_email_or_phone()
S
60 6 12
isEmailOrPhoneField()
S
73 4 4
getPhoneNumberSelector()
S
63 4 9
validate_otp()
S
59 3 14
handleFormOptions()
S
61 3 12
_handle_gf_form()
S
66 3 9
routeData()
S
66 3 8
__construct()
S
58 2 15
_add_shortcode_to_form()
S
55 1 17
processPhoneAndStartOTPVerificationProcess()
S
63 2 10
handleForm()
S
65 2 8
processEmailAndStartOTPVerificationProcess()
S
63 2 10
handle_failed_verification()
S
80 1 3
handle_post_verification()
S
80 1 3
unsetOTPSessionVariables()
S
79 1 3